package com.td.module.farmer.controller.admin.plantinginformation.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 种植信息 Excel 导出 Request VO", description = "参数和 PlantingInformationPageReqVO 是一致的")
@Data
public class PlantingInformationExportReqVO {

    @ApiModelProperty(value = "种植物名称", example = "赵六")
    private String plantingName;

    @ApiModelProperty(value = "种植时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] plantingTime;

    @ApiModelProperty(value = "种植周期（月）")
    private BigDecimal plantingCycle;

    @ApiModelProperty(value = "存储方式", example = "2")
    private Integer agroReviewStorageMethod;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
